package com.zzh.demo;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @PackageName:com.zzh.demo
 * @ClassName:RabbitConsumerDemo
 * @Description:
 * @author:zhangzhanheng
 * @date: 2020/12/17 15:39
 */
@Component
@RabbitListener(queues = "myqueue")
public class RabbitConsumerDemo {

    @RabbitHandler
    public void process(String hello) {
        System.out.println("Receiver1  : " + hello);
    }

}
